package com.dabai.iot.core.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 物模型属性查询类
 *
 * @author kev1n
 */
@Data
public class ThingModelItemQuery implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 模块id
     */
    @Schema(description = "模块id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long blockId;

    /**
     * 中文名称
     */
    @Schema(description = "中文名称")
    private String name;

    /**
     * 标识符
     */
    @Schema(description = "标识符")
    private String identifier;

    /**
     * 功能类型
     */
    @Schema(description = "功能类型")
    private String functionType;

    /**
     * 数据类型
     */
    @Schema(description = "数据类型")
    private String dataType;

    /**
     * 访问模式
     */
    @Schema(description = "访问模式")
    private String method;

}
